import Item from "./Item";
import React, { Component } from "react";

export default class List extends Component {
  render() {
    return (
      <div>
        <ul style={{ marginLeft: 0, padding: "0" }}>
          {this.props.list.map((item, index) => (
            <Item
              key={item.id}
              {...item}
              check={this.props.check}
              delete={this.props.delete}
            />
          ))}
        </ul>
      </div>
    );
  }
}
